<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<jsp:setProperty property="*" name="u"/>
<%
	response.sendRedirect("userinfo.jsp");
%>
<head>
<script type="text/javascript">
	function validate(){
		var username = document.getElementById("username").value;
		var password = document.getElementById("password").value;
		var age = document.getElementById("age").value;
		var nickName = document.getElementById("nickName").value;
		if(username==""||username==null){
			return false;
		}
		return true;
	}
</script>
</head>
<body>
	<form action="reg.jsp" >
		用户名：<input type="text" name="username" id="username"><br>
		密码：<input type="password" name="password" id="password"><br>
		昵称：<input type="text" name="nickName" id="nickName"><br>
		年龄：<input type="text" name="age" id="age"><br>
		籍贯：<select name="jg" id="jg">
					<option value="山东">山东</option>
					<option value="山西">山西</option>
					<option value="广东">广东</option>
					<option value="广西">广西</option>
		</select><br>
		爱好：<input type="checkbox" name="like" value="a">爱好a
		    <input type="checkbox"  name="like" value="b">爱好b
		    <input type="checkbox"  name="like" value="c">爱好c
		    <input type="checkbox"  name="like" value="d">爱好d<br>
		    <input type="submit"  value="提交">
	</form>
	
	
	</body>